package com.ddd.test.service;

import com.ddd.test.dto.cmd.OrderDTO;
import com.ddd.test.dto.cmd.SalesDTO;
import com.ddd.test.result.Result;



/**
 *
 * 
 */

public interface SalesService {


  /**
   * 按code禁用
   *
   * @return Result<Integer>
   */

  Result<String> disable( String code);

  /**
   * 新增
   *
   * @param record 记录
   * @return Result<Integer>
   */

  Result<String> create( SalesDTO record);


  /**
   * 按code查询
   *
   * @return Result<SalesDTO>
   */

  Result<SalesDTO> getSales(String code);

 

  /**
   * 调级
   *
   * @return Result<String>
   */

  Result<Integer> changeLevel(Integer level,String code);
  
  /**
   * 新人带客户资源入职
   *
   * @return Result<String>
   */

  Result<String> entryAndOrders(SalesDTO salesDTO,OrderDTO orderDTO);


}